<!DOCTYPE html>
<html>
<head>
    <title>公众号品牌引流</title>
    <#include "/header.html">
    <style>
        th {
            text-align: center;
        }
    </style>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div style="float: left">
                <select style="height: 34px;" id="selectUserGzhList" v-model="q.gzhCode">

                </select>
            </div>
            <p style="float: left">&nbsp;</p>
            <div style="float: left">
                <input style="width: 120px" class="form-control" list="brandName" placeholder="品牌" id="brandNames">
                <datalist id="brandName">

                </datalist>
            </div>
            <p style="float: left">&nbsp;</p>
            <a class="btn btn-default" @click="query">查询</a>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增品牌</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>
    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">公众号</div>
                <div class="col-sm-10">
                    <select class="form-control" id="gzhList" style="height: 34px" v-model="gzhBrandMap.gzhCode">

                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">品牌</div>
                <div class="col-sm-10">
                    <input class="form-control" list="coverBrand" placeholder="请选择品牌" id="linkBrandName" onchange="vm.getBrandId(this)">
                    <datalist id="coverBrand" style="line-height: 10px">

                    </datalist>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">品牌流量控制</div>
                <div class="col-sm-10">
                    <label class="radio-inline">
                        <input type="radio" name="randomStatus" value="0" v-model="gzhBrandMap.isRandom"/> 不随机
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="randomStatus" value="1" v-model="gzhBrandMap.isRandom"/> 随机
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<script src="${request.contextPath}/statics/js/modules/sys/bgzhbrandmap.js?_${.now?long}"></script>
</body>
</html>
